#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QGSettings>
#include <QDebug>
#include <QMessageBox>

#include "widgetinterface.h"
#include "pictureboxinterface.h"

namespace Ui {
class Widget;
}

class WidgetPrivate;
class Widget : public QWidget
{
    Q_OBJECT
    Q_DECLARE_PRIVATE(Widget)

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

    bool loadPlugin();

private slots:
    void on_lineEdit_setName_textChanged(const QString &arg1);
    void on_lineEdit_setAge_textChanged(const QString &arg1);
    void on_lineEdit_setId_textChanged(const QString &arg1);
    void on_lineEdit_setAddress_textChanged(const QString &arg1);
    void on_lineEdit_setTemperature_textChanged(const QString &arg1);
    void on_pushButton_ok_clicked();
    void slotUpdateInfo(const QString &key);

private:
    Ui::Widget *ui;
    WidgetPrivate *d_ptr;
};

#endif // WIDGET_H
